object RelCartaComissaoGuias: TRelCartaComissaoGuias
  Left = 276
  Top = 121
  Width = 822
  Height = 649
  Caption = 'RelCartaComissaoGuias'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object rlRelatorio: TRLReport
    Left = 0
    Top = -2
    Width = 794
    Height = 1123
    DataSource = dsConsulta
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = -9
    Font.Name = 'Arial'
    Font.Style = []
    Margins.LeftMargin = 6.000000000000000000
    Margins.TopMargin = 8.000000000000000000
    Margins.RightMargin = 6.000000000000000000
    PrintEmpty = False
    Title = 'Carta de comiss'#227'o'
    object RLGroup1: TRLGroup
      Left = 23
      Top = 30
      Width = 748
      Height = 1067
      DataFields = 'GRUPO_CODIGO'
      object RLSubDetail2: TRLSubDetail
        Left = 0
        Top = 161
        Width = 748
        Height = 72
        DataSource = dsPostos
        object RLBand2: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 16
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          object RLDraw40: TRLDraw
            Left = 640
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw42: TRLDraw
            Left = 747
            Top = 0
            Width = 1
            Height = 15
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw43: TRLDraw
            Left = 0
            Top = 0
            Width = 1
            Height = 15
            Align = faLeftBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText8: TRLDBText
            Left = 2
            Top = 1
            Width = 43
            Height = 10
            DataField = 'FRANQUIA'
            DataSource = dsPostos
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText25: TRLDBText
            Left = 692
            Top = 1
            Width = 53
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText26: TRLDBText
            Left = 592
            Top = 1
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALGUIAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText27: TRLDBText
            Left = 552
            Top = 1
            Width = 37
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'GUIAS'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw54: TRLDraw
            Left = 550
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw1: TRLDraw
            Left = 590
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw33: TRLDraw
            Left = 190
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw34: TRLDraw
            Left = 230
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw35: TRLDraw
            Left = 280
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw36: TRLDraw
            Left = 320
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw37: TRLDraw
            Left = 370
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw38: TRLDraw
            Left = 410
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw39: TRLDraw
            Left = 460
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw41: TRLDraw
            Left = 500
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText10: TRLDBText
            Left = 462
            Top = 2
            Width = 37
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBQTD'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText11: TRLDBText
            Left = 502
            Top = 2
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText12: TRLDBText
            Left = 372
            Top = 2
            Width = 37
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBQTD1'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText13: TRLDBText
            Left = 412
            Top = 2
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBTOTAL1'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText14: TRLDBText
            Left = 192
            Top = 2
            Width = 37
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDOPBMC'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText15: TRLDBText
            Left = 232
            Top = 2
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALOPBMC'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText16: TRLDBText
            Left = 282
            Top = 2
            Width = 37
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDOPFAUESPI'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText17: TRLDBText
            Left = 322
            Top = 2
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALOPEFAUESPI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw14: TRLDraw
            Left = 690
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText5: TRLDBText
            Left = 642
            Top = 2
            Width = 47
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
        end
        object RLBand3: TRLBand
          Left = 0
          Top = 16
          Width = 748
          Height = 49
          BandType = btColumnFooter
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = False
          AfterPrint = RLBand3AfterPrint
          BeforePrint = RLBand3BeforePrint
          object RLDraw64: TRLDraw
            Left = 640
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLLabel21: TRLLabel
            Left = 3
            Top = 2
            Width = 23
            Height = 10
            Caption = 'Totais'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBResult15: TRLDBResult
            Left = 192
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDOPBMC'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult18: TRLDBResult
            Left = 692
            Top = 2
            Width = 53
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw68: TRLDraw
            Left = 0
            Top = 15
            Width = 748
            Height = 1
            DrawKind = dkLine
          end
          object RLDBResult22: TRLDBResult
            Left = 648
            Top = 17
            Width = 97
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'ISS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
            Transparent = False
            Visible = False
          end
          object resSubtotal: TRLDBResult
            Left = 640
            Top = 32
            Width = 105
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'SUBTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLLabel24: TRLLabel
            Left = 576
            Top = 32
            Width = 56
            Height = 10
            Alignment = taRightJustify
            Caption = '(=) SUBTOTAL'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw69: TRLDraw
            Left = 0
            Top = 30
            Width = 748
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
            Visible = False
          end
          object RLDraw70: TRLDraw
            Left = 0
            Top = 44
            Width = 748
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText36: TRLDBText
            Left = 424
            Top = 17
            Width = 209
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'COMISSAO_ISS'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(-) desconto: '
            Visible = False
          end
          object RLDraw20: TRLDraw
            Left = 747
            Top = 4
            Width = 1
            Height = 45
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw23: TRLDraw
            Left = 0
            Top = 0
            Width = 1
            Height = 45
            Align = faLeftTop
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText24: TRLDBText
            Left = 299
            Top = 31
            Width = 87
            Height = 10
            DataFormula = 'GRUPO_TIPOCONTA'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Visible = False
          end
          object rlInfoBanco: TRLLabel
            Left = 4
            Top = 17
            Width = 40
            Height = 10
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object rlInfoBanco2: TRLLabel
            Left = 4
            Top = 33
            Width = 44
            Height = 10
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Visible = False
          end
          object RLDBResult1: TRLDBResult
            Left = 592
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALGUIAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw16: TRLDraw
            Left = 190
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw17: TRLDraw
            Left = 230
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw18: TRLDraw
            Left = 280
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw19: TRLDraw
            Left = 320
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw25: TRLDraw
            Left = 370
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw27: TRLDraw
            Left = 410
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw44: TRLDraw
            Left = 460
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw45: TRLDraw
            Left = 500
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw46: TRLDraw
            Left = 550
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw47: TRLDraw
            Left = 590
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw49: TRLDraw
            Left = 690
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBResult2: TRLDBResult
            Left = 282
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDOPFAUESPI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult3: TRLDBResult
            Left = 372
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBQTD1'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult4: TRLDBResult
            Left = 462
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBQTD'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult5: TRLDBResult
            Left = 552
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'GUIAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult6: TRLDBResult
            Left = 642
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'QTDTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult7: TRLDBResult
            Left = 232
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALOPBMC'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult8: TRLDBResult
            Left = 322
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALOPEFAUESPI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult9: TRLDBResult
            Left = 412
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBTOTAL1'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult10: TRLDBResult
            Left = 504
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'BBTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
        end
      end
      object RLSubDetail1: TRLSubDetail
        Left = 0
        Top = 233
        Width = 748
        Height = 18
        DataSource = dsAjustes
        object RLBand4: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 17
          AfterPrint = RLBand4AfterPrint
          object RLDraw74: TRLDraw
            Left = 0
            Top = 16
            Width = 748
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText30: TRLDBText
            Left = 424
            Top = 2
            Width = 209
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTEGRUPO_DESCRICAO'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(+/-) '
          end
          object rldAjuste: TRLDBText
            Left = 640
            Top = 1
            Width = 105
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTECOMISSAO_VALOR'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw10: TRLDraw
            Left = 0
            Top = 0
            Width = 1
            Height = 15
            Align = faLeftTop
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw4: TRLDraw
            Left = 636
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw3: TRLDraw
            Left = 0
            Top = 2
            Width = 1
            Height = 15
            Align = faLeftBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw13: TRLDraw
            Left = 747
            Top = 2
            Width = 1
            Height = 15
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
        end
      end
      object rlband: TRLBand
        Left = 0
        Top = 251
        Width = 748
        Height = 808
        AutoExpand = False
        BandType = btColumnFooter
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = False
        Borders.Style = bsVertical
        AfterPrint = rlbandAfterPrint
        BeforePrint = rlbandBeforePrint
        object RLDraw71: TRLDraw
          Left = 0
          Top = 0
          Width = 1
          Height = 20
          Align = faLeftTop
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object rlTexto: TRLRichText
          Left = 1
          Top = 80
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
        object RLDraw11: TRLDraw
          Left = 0
          Top = 19
          Width = 748
          Height = 1
          Align = faRightOnly
          DrawKind = dkLine
        end
        object rlTotLiq: TRLLabel
          Left = 424
          Top = 2
          Width = 320
          Height = 14
          Alignment = taRightJustify
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object rlObs: TRLRichText
          Left = 1
          Top = 24
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
        object RLDraw5: TRLDraw
          Left = 0
          Top = 793
          Width = 1
          Height = 15
          Align = faLeftBottom
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw12: TRLDraw
          Left = 747
          Top = 0
          Width = 1
          Height = 20
          Align = faRightTop
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object resGuias: TRLDBResult
          Left = 176
          Top = 2
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataFormula = 'TOTALCRED-(TOTALCRED*COMISSAO_ISS/100)'
          DataSource = dsPostos
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          Visible = False
        end
        object resAjustes: TRLLabel
          Left = 336
          Top = 2
          Width = 8
          Height = 12
          Caption = '0'
          Visible = False
        end
      end
      object RLBand1: TRLBand
        Left = 0
        Top = 0
        Width = 748
        Height = 161
        AutoExpand = False
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = True
        BeforePrint = RLBand1BeforePrint
        object RLDBText1: TRLDBText
          Left = 535
          Top = 2
          Width = 101
          Height = 14
          Alignment = taRightJustify
          DataField = 'Impressao'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Teresina, '
        end
        object RLDBText2: TRLDBText
          Left = 40
          Top = 24
          Width = 228
          Height = 18
          DataField = 'GRUPO_DESCRICAO'
          DataSource = dsConsulta
          Font.Charset = ANSI_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial Black'
          Font.Style = []
          ParentFont = False
          Text = 'COMISS'#195'O '
        end
        object RLDBText3: TRLDBText
          Left = 40
          Top = 62
          Width = 88
          Height = 14
          DataField = 'GRUPO_ATT'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Att.: '
        end
        object rlLinha: TRLLabel
          Left = 4
          Top = 148
          Width = 27
          Height = 12
          Align = faBottomOnly
          Caption = 'Posto'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw82: TRLDraw
          Left = 190
          Top = 130
          Width = 558
          Height = 1
          Align = faRightOnly
          DrawKind = dkLine
        end
        object RLMemo1: TRLMemo
          Left = 40
          Top = 82
          Width = 700
          Height = 29
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Lines.Strings = (
            
              'Informamos, com satisfa'#231#227'o, que estamos repassando a remunera'#231#227'o' +
              ' sobre as guias recebidas'
            'neste(s) posto(s) de recebimento, conforme demonstrativo abaixo:')
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 40
          Top = 45
          Width = 150
          Height = 14
          DataField = 'COMISSAO_PERIODO'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          Text = 'Ref. a: '
        end
        object RLDraw8: TRLDraw
          Left = 0
          Top = 145
          Width = 1
          Height = 15
          Align = faLeftBottom
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw9: TRLDraw
          Left = 747
          Top = 130
          Width = 1
          Height = 30
          Align = faRightBottom
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object resGarantia: TRLDBResult
          Left = 520
          Top = 42
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'COMISSAO_GARANTIA'
          DataSource = dsConsulta
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Visible = False
        end
        object resNDepositar: TRLDBResult
          Left = 520
          Top = 58
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'COMISSAO_NDEPOSITAR'
          DataSource = dsConsulta
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Visible = False
        end
        object RLDraw21: TRLDraw
          Left = 0
          Top = 145
          Width = 748
          Height = 1
          Align = faRightOnly
          DrawKind = dkLine
        end
        object RLLabel16: TRLLabel
          Left = 692
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw15: TRLDraw
          Left = 690
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw7: TRLDraw
          Left = 640
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel23: TRLLabel
          Left = 592
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel10: TRLLabel
          Left = 642
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel17: TRLLabel
          Left = 642
          Top = 132
          Width = 23
          Height = 12
          Caption = 'Total'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw6: TRLDraw
          Left = 590
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel1: TRLLabel
          Left = 552
          Top = 132
          Width = 71
          Height = 12
          Caption = 'Boletos Pr'#243'prios'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel9: TRLLabel
          Left = 552
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw2: TRLDraw
          Left = 550
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel4: TRLLabel
          Left = 502
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw24: TRLDraw
          Left = 500
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel3: TRLLabel
          Left = 462
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel2: TRLLabel
          Left = 462
          Top = 132
          Width = 66
          Height = 12
          Caption = 'BB- Conv'#234'nios'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw22: TRLDraw
          Left = 460
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel7: TRLLabel
          Left = 412
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw26: TRLDraw
          Left = 410
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel5: TRLLabel
          Left = 372
          Top = 132
          Width = 86
          Height = 12
          Caption = 'BB - T'#237'tulo Banc'#225'rio'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel6: TRLLabel
          Left = 372
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel12: TRLLabel
          Left = 322
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel8: TRLLabel
          Left = 282
          Top = 132
          Width = 23
          Height = 12
          Caption = 'Ops '
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel11: TRLLabel
          Left = 282
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw29: TRLDraw
          Left = 320
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw28: TRLDraw
          Left = 280
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel15: TRLLabel
          Left = 232
          Top = 148
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw32: TRLDraw
          Left = 230
          Top = 145
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel13: TRLLabel
          Left = 192
          Top = 132
          Width = 49
          Height = 12
          Caption = 'Ops - BMC'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel14: TRLLabel
          Left = 192
          Top = 148
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw31: TRLDraw
          Left = 190
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw30: TRLDraw
          Left = 370
          Top = 130
          Width = 1
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
      end
    end
  end
  object qryConsulta: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    AfterOpen = qryConsultaAfterOpen
    BeforeClose = qryConsultaBeforeClose
    OnCalcFields = qryConsultaCalcFields
    CommandTimeout = 90
    Parameters = <
      item
        Name = 'PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT B.NOME AS BANCO, C.*, A.CARTA_DATAINI, A.CARTA_DATAFIM, '
      'CARTA_GERACAO, CARTA_CREDITO, CARTA_OBS, CARTA_AVISO, CARTA_PAGO'
      
        'FROM CARTA A INNER JOIN COMISSAO C ON (C.COMISSAO_PERIODO=A.COMI' +
        'SSAO_PERIODO)'
      'LEFT JOIN BANCOS B ON (B.CODIGO=C.COMISSAO_BANCO)'
      'WHERE A.COMISSAO_PERIODO=:PERIODO'
      'AND ((SELECT SUM(GUIAS+QTDOPBMC+QTDOPFAUESPI)'
      'FROM FRANCOMISSAO F '
      'WHERE (F.GRUPO_CODIGO=C.GRUPO_CODIGO)'
      'AND (F.COMISSAO_PERIODO=C.COMISSAO_PERIODO))>0)'
      'ORDER BY C.GRUPO_CODIGO')
    Left = 282
    Top = 303
    object qryConsultaBANCO: TStringField
      FieldName = 'BANCO'
      Size = 50
    end
    object qryConsultaGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryConsultaCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      EditMask = 'AAA\/99;0; '
      FixedChar = True
      Size = 5
    end
    object qryConsultaGRUPO_CREDIGI: TBCDField
      FieldName = 'GRUPO_CREDIGI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCALGUIA_CODIGO: TIntegerField
      FieldName = 'CALGUIA_CODIGO'
    end
    object qryConsultaCOMISSAO_JUNTAR: TStringField
      FieldName = 'COMISSAO_JUNTAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaCOMISSAO_BANCO: TSmallintField
      FieldName = 'COMISSAO_BANCO'
    end
    object qryConsultaCOMISSAO_AGENCIA: TStringField
      FieldName = 'COMISSAO_AGENCIA'
      FixedChar = True
      Size = 8
    end
    object qryConsultaCOMISSAO_CONTA: TStringField
      FieldName = 'COMISSAO_CONTA'
      Size = 15
    end
    object qryConsultaCOMISSAO_TITULAR: TStringField
      FieldName = 'COMISSAO_TITULAR'
      Size = 50
    end
    object qryConsultaCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      EditFormat = ' - ##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_OBS: TMemoField
      FieldName = 'COMISSAO_OBS'
      BlobType = ftMemo
    end
    object qryConsultaGRUPO_ATT: TStringField
      FieldName = 'GRUPO_ATT'
      Size = 30
    end
    object qryConsultaGRUPO_DESCRICAO: TStringField
      FieldName = 'GRUPO_DESCRICAO'
      Size = 50
    end
    object qryConsultaGRUPO_TIPOCONTA: TStringField
      FieldName = 'GRUPO_TIPOCONTA'
      Size = 15
    end
    object qryConsultaGRUPO_OI: TBCDField
      FieldName = 'GRUPO_OI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_TIM: TBCDField
      FieldName = 'GRUPO_TIM'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryConsultaCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryConsultaCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryConsultaCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryConsultaCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryConsultaCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftFmtMemo
    end
    object qryConsultaCARTA_AVISO: TMemoField
      FieldName = 'CARTA_AVISO'
      BlobType = ftFmtMemo
    end
    object qryConsultaImpressao: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryConsultaCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaGRUPO_EMBRATELLDR: TBCDField
      FieldName = 'GRUPO_EMBRATELLDR'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_EMBRATELLIVRE: TBCDField
      FieldName = 'GRUPO_EMBRATELLIVRE'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_OIRECARGA: TBCDField
      FieldName = 'COMISSAO_OIRECARGA'
      Precision = 19
    end
  end
  object dsConsulta: TDataSource
    DataSet = qryConsulta
    Left = 282
    Top = 320
  end
  object dsPostos: TDataSource
    DataSet = qryPostos
    Left = 354
    Top = 295
  end
  object qryPostos: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 4000
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT *, TOTAL-ISS AS SUBTOTAL  FROM V_COMISSAOGUIAS'
      
        'WHERE (GRUPO_CODIGO=:GRUPO_CODIGO) AND  (COMISSAO_PERIODO=:COMIS' +
        'SAO_PERIODO)'
      'ORDER BY GRUPO_CODIGO, FRANQUIA_CODIGO')
    Left = 354
    Top = 313
    object StringField3: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryPostosVALGUIAS: TBCDField
      FieldName = 'VALGUIAS'
      ReadOnly = True
      currency = True
      Precision = 30
      Size = 19
    end
    object qryPostosGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryPostosCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryPostosFRANQUIA_CODIGO: TIntegerField
      FieldName = 'FRANQUIA_CODIGO'
    end
    object qryPostosGUIAS: TIntegerField
      FieldName = 'GUIAS'
      DisplayFormat = '###,###,###'
    end
    object qryPostosMEDIA: TBCDField
      FieldName = 'MEDIA'
      currency = True
      Precision = 19
      Size = 19
    end
    object qryPostosCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryPostosCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryPostosCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryPostosCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryPostosCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftMemo
    end
    object qryPostosCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryPostosCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryPostosCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryPostosCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      Precision = 19
    end
    object qryPostosCARTA_PAGO: TBooleanField
      FieldName = 'CARTA_PAGO'
    end
    object qryPostosFRANQUIA: TStringField
      FieldName = 'FRANQUIA'
      ReadOnly = True
      Size = 63
    end
    object qryPostosISS: TBCDField
      FieldName = 'ISS'
      ReadOnly = True
      currency = True
      Precision = 32
      Size = 11
    end
    object qryPostosSUBTOTAL: TBCDField
      FieldName = 'SUBTOTAL'
      ReadOnly = True
      currency = True
      Precision = 32
      Size = 11
    end
    object qryPostosBBTOTAL: TBCDField
      FieldName = 'BBTOTAL'
      currency = True
      Precision = 19
    end
    object qryPostosBBQTD: TIntegerField
      FieldName = 'BBQTD'
      DisplayFormat = '###,###,##0'
    end
    object qryPostosTOTAL: TBCDField
      FieldName = 'TOTAL'
      ReadOnly = True
      currency = True
      Precision = 32
      Size = 19
    end
    object qryPostosTOTALOPBMC: TBCDField
      FieldName = 'TOTALOPBMC'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosTOTALOPEFAUESPI: TBCDField
      FieldName = 'TOTALOPEFAUESPI'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosBBQTD1: TIntegerField
      FieldName = 'BBQTD1'
      DisplayFormat = '###,###,##0'
    end
    object qryPostosBBTOTAL1: TBCDField
      FieldName = 'BBTOTAL1'
      currency = True
      Precision = 19
    end
    object qryPostosQTDOPBMC: TIntegerField
      FieldName = 'QTDOPBMC'
      DisplayFormat = '###,###,##0'
    end
    object qryPostosQTDOPFAUESPI: TIntegerField
      FieldName = 'QTDOPFAUESPI'
      DisplayFormat = '###,###,##0'
    end
    object qryPostosQTDTOTAL: TIntegerField
      FieldName = 'QTDTOTAL'
      ReadOnly = True
      DisplayFormat = '###,###,##0'
    end
  end
  object dsAjustes: TDataSource
    DataSet = qryAjustes
    Left = 418
    Top = 295
  end
  object qryAjustes: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 4000
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT * FROM AJUSTECOMISSAO'
      'WHERE (GRUPO_CODIGO=:GRUPO_CODIGO)'
      'AND (COMISSAO_PERIODO=:COMISSAO_PERIODO) '
      'AND (AJUSTECOMISSAO_CREDITO = 0)')
    Left = 418
    Top = 305
    object qryAjustesGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryAjustesCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryAjustesAJUSTEGRUPO_DESCRICAO: TStringField
      FieldName = 'AJUSTEGRUPO_DESCRICAO'
      Size = 30
    end
    object qryAjustesAJUSTECOMISSAO_VALOR: TBCDField
      FieldName = 'AJUSTECOMISSAO_VALOR'
      DisplayFormat = '###,###,##0.00'
      Precision = 19
    end
  end
  object RLRichFilter1: TRLRichFilter
    DisplayName = 'Formato RichText'
    Left = 480
    Top = 350
  end
end
